package com.aos.erp.manager.rest.sys;

import com.aos.erp.common.bean.ResultEntity;
import com.aos.erp.manager.service.sys.RoleService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @program: erp
 * @description:
 * @author: tanzhiyu
 * @create: 2018-11-23 11:43
 **/
@Api(value = "角色", tags = {"角色API"})
@RestController("RESTRoleController")
@RequestMapping("/api/role")
public class RoleController {
    @Resource
    RoleService roleServicer;

    @GetMapping("/page")
    public ResultEntity page() throws Exception {
        roleServicer.findByName(null);
        return ResultEntity.success();
    }
}
